Telegram Group & Telegram Channel
Ответ к предыдущей задаче для новичков.

class Calculator:
@staticmethod
def add(n1, n2):
return n1 + n2

@staticmethod
def subtract(n1, n2):
return n1 - n2

@staticmethod
def divide(n1, n2):
if n2 != 0:
return n1 / n2

@staticmethod
def multiply(n1, n2):
return n1 * n2

Еще 3 варианта решения мы закинули на наш сайт: https://pythonturbo.ru/zadacha-prostoj-oop-kalkulyator/

#новичок #coбес



tg-me.com/pythonturboru/417
Create:
Last Update:

Ответ к предыдущей задаче для новичков.

class Calculator:
@staticmethod
def add(n1, n2):
return n1 + n2

@staticmethod
def subtract(n1, n2):
return n1 - n2

@staticmethod
def divide(n1, n2):
if n2 != 0:
return n1 / n2

@staticmethod
def multiply(n1, n2):
return n1 * n2

Еще 3 варианта решения мы закинули на наш сайт: https://pythonturbo.ru/zadacha-prostoj-oop-kalkulyator/

#новичок #coбес

BY Python Turbo. Уютное сообщество Python разработчиков.


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonturboru/417

View MORE
Open in Telegram


Python Turbo Уютное сообщество Python разработчиков Telegram | DID YOU KNOW?

Date: |

At a time when the Indian stock market is peaking and has rallied immensely compared to global markets, there are companies that have not performed in the last 10 years. These are definitely a minor portion of the market considering there are hundreds of stocks that have turned multibagger since 2020. What went wrong with these stocks? Reasons vary from corporate governance, sectoral weakness, company specific and so on. But the more important question is, are these stocks worth buying?

Telegram today rolling out an update which brings with it several new features.The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations.

Python Turbo Уютное сообщество Python разработчиков from kr


Telegram Python Turbo. Уютное сообщество Python разработчиков.
FROM USA